﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;

namespace COMPONENT.Library.Conexion
{
    public class clsConexion
    {
        public static SqlConnection GetConexion()
        {
            string conn = string.Empty;
            if (ConfigurationManager.ConnectionStrings["hms_db"] != null)
            {
                conn = ConfigurationManager.ConnectionStrings["hms_db"].ConnectionString;
            }
            SqlConnection sqlconn = new SqlConnection(conn);
            sqlconn.Open();
            return sqlconn;
        }
    }
}
